// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/accesscontrol/api/OcsPeopleSyncApi'

import SubmitClass from '@api/accesscontrol/model/OcsPeopleSyncCommonReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 提交 —————————————————————————————— //

  async submit(param, TIP = '提交') {
    const DTO = CORE.grpcDTO(SubmitClass, param)
    await CORE.grpc(TIP, CLIENT, 'sync', DTO)
    return CORE.grpcOK(TIP)
  },
}
